# -*- coding: utf-8 -*-
# @Time : 2019/1/14 11:51
# @Author : Administrator
# @File : common.py
# @Project : code
# @title : 公共模块：1、登录；2、解密
import requests
class Basic():
    def login(self):     #登录
        data_login = {"userName": "wncd000", "userPass": "woniu123", "checkcode": "0000"}
        s = requests.session()
        s.post(url="http://192.168.2.155:8080/WoniuBoss2.5/log/userLogin",
                       data=data_login)
        return s
    def deco(self):     #解密
        s=self.login()
        r=s.post(url="http://192.168.2.155:8080/WoniuBoss2.5/second?vp=woniu123",
               data={"vp": "woniu123"})
        # print(r.text)


if __name__ == '__main__':
    Basic().deco()
